import pypinyin
from pypinyin import lazy_pinyin,  Style




def getpinyin(index=0,text=''):
    style  =  Style.TONE3
    items = lazy_pinyin(text,  style=style)
    startStr = "YANJUN001"+"|"
    res = "";
    for index in range(len(items)):
        res = res + items[index]+" "
    return startStr + res




lab = getpinyin(0,"充满希望的明天晦气的今天")
print(lab)

'''
YANJUN01|ka2 er2 pu3 pei2 wai4 sun1 wan2 hua2 ti1
YANJUN02|jia2 yu3 cun1 yan2 bie2 zai4 yong1 bao4 wo3
YANJUN03|bao2 ma3 pei4 gua4 bo3 luo2 an1 diao1 chan2 yuan4 zhen3 dong3 weng1 ta4
YANJUN04|deng4 xiao3 ping2 yu3 sa4 qie4 er3 hui4 wu4
YANJUN05|lao2 hu3 you4 zai3 yu2 chong3 wu4 quan3 wan2 shua3
YANJUN06|shen1 chang2 yue1 wu2 chi3 er4 cun4 wu3 fen1 huo4 yi3 shang4
YANJUN07|zhao4 di2 yue1 cao2 yun2 teng2 qu4 gui3 wu1
YANJUN08|zhan2 pin3 sui1 you3 zhan3 yuan2 que4 tui2
YANJUN09|yi2 san3 ju1 er2 tong2 he2 you4 tuo1 er2 tong2 wei2 zhu3
YANJUN10|ke1 te4 ni1 shen1 chuan1 bao4 wen2 da4 yi1


ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN01.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN01.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN02.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN02.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN03.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN03.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN04.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN04.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN05.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN05.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN06.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN06.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN07.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN07.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN08.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN08.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN09.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN09.wav
ffmpeg -i F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN10.m4a F:\\vs_code\\file\\test-finetune\\finetune-01\\input\\yanjun_01\\YANJUN10.wav
'''